package demo2;

public class Dog {
    private DogState dogState;

    public Dog(DogState dogState) {
        this.dogState = dogState;
    }
    public void show(){
        dogState.showState();
    }
}
